From 914e61c1ec5a7996a3e71692ce41e77359e70e0c Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Tue, 7 Feb 2012 16:50:17 +0000 Subject: [PATCH] xl: Drop -l option to xl cpupool-list The implementation (which was a nop) was removed back in 22838:aab67c1c6b87 but this now causes "set but not used" warnings from some compilers. Might as well just nuke the option entirely. Signed-off-by: Ian Campbell Acked-by: Juergen Gross Committed-by: Ian Jackson --- tools/libxl/xl_cmdimpl.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 0b811b5b45..70f9848f36 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -5585,11 +5585,9 @@ int main_cpupoollist(int argc, char **argv) int option_index = 0; static struct option long_options[] = { {"help", 0, 0, 'h'}, - {"long", 0, 0, 'l'}, {"cpus", 0, 0, 'c'}, {0, 0, 0, 0} }; - int opt_long = 0; int opt_cpus = 0; const char *pool = NULL; libxl_cpupoolinfo *poolinfo; @@ -5599,7 +5597,7 @@ int main_cpupoollist(int argc, char **argv) int ret = 0; while (1) { - opt = getopt_long(argc, argv, "hlc", long_options, &option_index); + opt = getopt_long(argc, argv, "hc", long_options, &option_index); if (opt == -1) break; @@ -5607,9 +5605,6 @@ int main_cpupoollist(int argc, char **argv) case 'h': help("cpupool-list"); return 0; - case 'l': - opt_long = 1; - break; case 'c': opt_cpus = 1; break; -- 2.30.2